<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>基础知识</title>
	<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"" rel="stylesheet">
	<link href="https://cdn.bootcdn.net/ajax/libs/animate.css/3.2.3/animate.css" rel="stylesheet">
	<link rel="stylesheet" href="./css/Frame.css" media="all">
	<link rel="stylesheet" type="text/css" href="../../static/css/public.css" />
</head>
<body>
	<!--右边内容-->
	<div id="app" class="main animated fadeInRight">
		<div class="shadow">
			<div>
				<h4>边框动画特效</h4>
				<pre>
	.cont {
		margin-top: 100px;
		margin-left: 200px;
	}
	
	.bb {
		position: relative;
		width: 200px;
		height: 200px;
		background-color: #0f222b;
		border: 1px solid #ddd;
	}
	
	.bb:before,.bb:after {
		content: " ";
		display: block;
		position: absolute;
		width: 220px;
		height: 220px;
		top: -10px;
		left: -10px;
		border: 2px solid #00FF00;
		z-index: 10;
		box-sizing: border-box;
		-webkit-animation: clipAni 4s infinite linear;
	}
	
	.bb:before {
		-webkit-animation-delay: -2s;
	}
	
	@keyframes clipAni {
		0%,100% {clip: rect(0px, 220px, 220px, 217px);}
		25% {clip: rect(0px, 220px, 3px, 0px);}
		50% {clip: rect(0px, 3px, 220px, 0px);}
		75% {clip: rect(217px, 220px, 220px, 0px);}
	}
	.bb:hover::after,
	.bb:hover::before {
		background-color: rgba(255, 0, 0, 0.3);
	}
	body {
		position: relative;
	}
	*,*::before,*::after {
		box-sizing: border-box;
	}
				</pre>
			</div>
			<div class="cont"><div class="bb"></div></div>
		</div>
	</div>
	<!--页面加载进度条-->
	<script src="https://cdn.bootcdn.net/ajax/libs/pace/0.5.0/pace.min.js"></script>
</body>

</html>